package cg.studio.algorithm.permutation;

import org.junit.Test;

public class PermutatorTester
{
  @Test
  public void printPermutate()
  {
    RecursivePermutator permutator = new RecursivePermutator();
    
    char[][] charss = new char[][]{ {'a', 'b', 'c','d'},{'a','b','a','b'}, {'a','c','a','b'} };
    for( int i=0; i<charss.length; ++i )
    {
      System.out.println( new String( charss[i] ) );
      System.out.println( "-----------------------------------" );
      permutator.printPermutation( charss[i] );
      System.out.println( "-----------------------------------" );
      permutator.printPermutationWithArray( charss[i] );
      System.out.println( "===================================" );
      System.out.println();
    }
  }
}
